package com.qidian.test;

/**
 * Author: 戴着假发的程序员
 * Date: 2024-05-09 16:04
 * company: 起点编程
 **/

public abstract class AbstractDemo {

    public static final void method(){}

    /*public static abstract void method1();*/

    public static abstract class St{}
}

abstract class BaseBuilder{
    public abstract void stpe1();
    public abstract void stpe2();
    public abstract void stpe3();
    public final void build(){
        stpe1();
        stpe2();
        stpe3();
    }
}
class HouseBuilder extends BaseBuilder{
    @Override
    public void stpe1() {
        System.out.println("打基础");
    }

    @Override
    public void stpe2() {
        System.out.println("上大梁");
    }

    @Override
    public void stpe3() {
        System.out.println("装修");
    }
}

class FactoryBuilder extends BaseBuilder{
    @Override
    public void stpe1() {
    }

    @Override
    public void stpe2() {

    }

    @Override
    public void stpe3() {

    }
}